.PHONY:all
all:reactor_server client

Flag=#-DMySelf=1 #在这里注释掉表示Flag为空，下面$(Flag)时就会自动去掉它
Lib=-ljsoncpp

reactor_server:Main.cc
	g++ -o $@ $^ -std=c++11 $(Lib) $(Flag)
client:ClientCal.cc
	g++ -o $@ $^ -std=c++11 $(Lib) $(Flag)

.PHONY:clean
clean:
	rm -f reactor_server client